package com.moba.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.moba.mapper.UserWalletMapper;
import com.moba.domain.UserWallet;


/**
 * @author liu, jia
 * @version 2019-10-16 21:05
 * @date 2019-10-16 21:05
 */
@Service
@Transactional
public class UserWalletService{

	@Resource
	private UserWalletMapper userWalletMapper;
	
	public UserWallet getEntity(UserWallet t) {
		return this.userWalletMapper.selectEntity(t);
	}

	public Integer getEntityCount(UserWallet t) {
		return this.userWalletMapper.selectEntityCount(t);
	}

	public List<UserWallet> getEntityList(UserWallet t) {
		return this.userWalletMapper.selectEntityList(t);
	}

	public Integer createEntity(UserWallet t) {
        this.userWalletMapper.insertEntity(t);
		return t.getId();
	}

	public int updateEntity(UserWallet t) {
		return this.userWalletMapper.updateEntity(t);
	}
	
	public int removeEntity(UserWallet t) {
		return this.userWalletMapper.deleteEntity(t);
	}

	public List<UserWallet> getEntityPaginatedList(UserWallet t) {
		return this.userWalletMapper.selectEntityPaginatedList(t);
	}

}
